#ifndef CNVIEW_H
#define CNVIEW_H

#include <QGraphicsView>
#include <QWidget>

class CNScene;
class QAction;
class CNView : public QGraphicsView
{
    Q_OBJECT
public:
    explicit CNView(QWidget *parent = nullptr);
    ~CNView();

protected:
    void dragEnterEvent(QDragEnterEvent *event) override;
    void dragMoveEvent(QDragMoveEvent *event) override;
    void dropEvent(QDropEvent *event) override;
    void wheelEvent(QWheelEvent *event) override;

private slots:
    void onCustomContextMenuRequested();
    void resetMatrix();

private:
    CNScene *m_pScene;
    QAction *m_pResetMatrixAction;
    QAction* m_pSaveFile;
};

#endif // CNVIEW_H
